package com.party.core.dao.read.analysis;

import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.analysis.StatisticsUser;
import com.party.core.model.analysis.StatisticsUserVisit;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @program: party-temp
 * @description: 统计用户数据读取
 * @author: Huaqunhao
 * @create: 2018-08-01 15:22
 **/
@Repository
public interface StatisticsUserReadDao extends BaseReadDao<StatisticsUser> {
    StatisticsUser getByUserId(@Param("userId") String userId);

    /**
     * 统计当天用户的新老访问量数据
     * @param map
     * @return
     */
    StatisticsUserVisit countNewAndOldUsersCount(@Param("params") Map<String,Object> map);

    /** 
    * @Description: 通过时间查询用户列表 
    * @Param:  
    * @return:  
    * @Author: Hua Qunhao
    * @Date: 2018/12/25 
    */ 
    List<StatisticsUser> queryUserListByDate(@Param("queryDate")String queryDate, Page page);

    /** 
    * @Description: 通过时间查询用户数量 
    * @Param:  
    * @return:
    * @Author: Hua Qunhao
    * @Date: 2018/12/25 
    */ 
    int queryUserCountByDate(@Param("queryDate")String queryDate,@Param("total")Integer total);


}
